<?php include('view/template/common/header.tpl'); ?>
<?php if ($error_warning) { ?>
<div class="warning"><?php echo $error_warning; ?></div>
<?php } ?>
<div class="box">
  <div class="left"></div>
  <div class="right"></div>
  <div class="heading">
    <h1 style="background-image: url('./view/image/country.png');"><?php echo $heading_title; ?></h1>
    <div class="buttons"><a onclick="$('#form').submit();" class="button"><span><?php echo "Lưu Lại"; ?></span></a><a onclick="location = '<?php echo $link_list; ?>';" class="button"><span><?php echo "Hủy"; ?></span></a></div>
  </div>
  <div class="content">
    <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
      <table class="form">
        <tr>
        <td>Tên khách hàng</td><td> <input type="text" name="hovaten" id="hovaten" size="58" value="<?php echo $datphong['hovaten'];?>" readonly="1"/></td>
        </tr>
        
        <tr>
        <td>Số CMTND</td><td> <input type="text" name="chungminhthu" id ="cmt"size="11" onkeyup="javascript:checkNumber(create.cmt);" value="<?php echo $datphong['chungminhthu'];?>" readonly="1"/></td>
        </tr>
        
        <tr>
        <td>Số điện thoại</td><td> <input type="text" name="dienthoai" id="sdt" size="11" value="<?php echo $datphong['dienthoai'];?>" onkeyup="javascript:checkNumber(create.sdt);" readonly="1"/></td>
        </tr>
        
        <tr>
        <td>Email</td><td> <input type="text" name="email" size="58" value="<?php echo $datphong['email'];?>" readonly="1"/></td>
        </tr>
        
         <tr>
        <td>Địa chỉ</td><td><textarea  name="diachi" cols="80" rows="5" readonly="1"><?php echo $datphong['diachi'];?></textarea></td>
        </tr>
        <tr>
        <td>Số phòng nghỉ</td><td> <input type="text" name="sophong" value="<?php echo $datphong['sophong'];?>" size="10" id="sp" onkeyup="javascript:checkNumber(create.sp);" readonly="1"/> Số lượng khách: <input type="text" name="sokhach" value="<?php echo $datphong['sokhach'];?>" size="10" id="sk" onkeyup="javascript:checkNumber(create.sk);"readonly="1"/>  </td>
        </tr>
        
        <tr>
        <td>Ngày nhận phòng</td><td> <input type="text" name="thoigiannhanphong" size="10" id="date1" value="<?php echo $datphong['thoigiannhanphong'];?>"readonly="1"/> Ngày trả phòng:  <input type="text" name="thoigiantraphong" value="<?php echo $datphong['thoigiantraphong'];?>" id="date2" size="10"readonly="1"/> </td>
        </tr>
        <tr><td>Ghi chú <br />(Đi theo đoàn, đặt cơm, đặt taxi,...)</td><td><textarea  name="ghichu" cols="80" rows="10" readonly="1"><?php echo $datphong['ghichu'];?></textarea></td></tr>
        
       <tr>
       <td>Trạng thái</td>
       <td><select name="menu">
                  <?php if($phongnghi['trangthai']=='0') { ?>
                  <option value="1" >Có</option>
                  <option value="0" selected="selected">Không</option>
                  <?php } else { ?>
                  <option value="1" selected="selected">Có</option>
                  <option value="0" >Không</option>
                  <?php } ?>
                </select></td>
       </tr>
       
       </table>
    </form>
  </div><div class="bottom_button"><a onclick="$('#form').submit();" class="button"><span><?php echo "Lưu Lại"; ?></span></a><a onclick="location = '<?php echo $link_list; ?>';" class="button"><span><?php echo "Hủy"; ?></span></a></div>
</div>
<?php include('view/template/common/footer.tpl'); ?>

<script type="text/javascript">
	var editor = CKEDITOR.replace( 'ynghialichsu');
 
   	CKFinder.setupCKEditor( editor, './view/javascript/ckfinder/' ) ;
   
</script>